package wb.is.besti.edu.cn.helloworld;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

/**
 * Created by asus on 2017/5/24.
 */

public class ThirdActivity extends AppCompatActivity {

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.third_activity);
        Button button = (Button)findViewById(R.id.button5);

        button.setOnClickListener(new View.OnClickListener(){
            public void onClick(View view){
                Toast toast = Toast.makeText(ThirdActivity.this,"20162321",Toast.LENGTH_LONG);
                toast.show();
            }
        });
        Button button1=(Button)findViewById(R.id.button10);
        button1.setOnClickListener(new View.OnClickListener(){
            public void onClick(View view){
                Intent intent = new Intent(ThirdActivity.this,Clock.class);
                startActivity(intent);
            }
                                   }
        );
    }

}
